package com.bw.controller;

import com.bw.entity.Yq;
import com.bw.mapper.YqMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class YiqingController {

    @Autowired
    YqMapper yqMapper;


    @RequestMapping("yqPage.do")
    public String yqPage(){

        return "yq";
    }

    @RequestMapping("yq.do")
    @ResponseBody
    public List<Yq> yq(Integer yes){
       return yqMapper.yq(yes);
    }
}
